package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StudeMapper;
import com.ruoyi.system.domain.Stude;
import com.ruoyi.system.service.IStudeService;

/**
 * 学生Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-12
 */
@Service
public class StudeServiceImpl implements IStudeService 
{
    @Autowired
    private StudeMapper studeMapper;

    /**
     * 查询学生
     * 
     * @param studeId 学生主键
     * @return 学生
     */
    @Override
    public Stude selectStudeByStudeId(Long studeId)
    {
        return studeMapper.selectStudeByStudeId(studeId);
    }

    /**
     * 查询学生列表
     * 
     * @param stude 学生
     * @return 学生
     */
    @Override
    public List<Stude> selectStudeList(Stude stude)
    {
        return studeMapper.selectStudeList(stude);
    }

    /**
     * 新增学生
     * 
     * @param stude 学生
     * @return 结果
     */
    @Override
    public int insertStude(Stude stude)
    {
        return studeMapper.insertStude(stude);
    }

    /**
     * 修改学生
     * 
     * @param stude 学生
     * @return 结果
     */
    @Override
    public int updateStude(Stude stude)
    {
        return studeMapper.updateStude(stude);
    }

    /**
     * 批量删除学生
     * 
     * @param studeIds 需要删除的学生主键
     * @return 结果
     */
    @Override
    public int deleteStudeByStudeIds(Long[] studeIds)
    {
        return studeMapper.deleteStudeByStudeIds(studeIds);
    }

    /**
     * 删除学生信息
     * 
     * @param studeId 学生主键
     * @return 结果
     */
    @Override
    public int deleteStudeByStudeId(Long studeId)
    {
        return studeMapper.deleteStudeByStudeId(studeId);
    }
}
